<?php
/*
*  edited by cbq in 2016.03.16
*  引入Smarty类，引入smarty配置文件
*  新建Cismarty类，重写部分配置信息
*/
if(!defined('BASEPATH')) EXIT('No direct script asscess allowed');
require_once(BASEPATH.'libraries/smarty/Smarty.class.php' );
class Cismarty extends Smarty {
    protected $ci;
    public function  __construct(){
        parent::__construct();
        $this->ci = & get_instance();
        // 配置相关信息
        $this->template_dir   = VIEWPATH;   //模板文件夹路径
    	$this->compile_dir    = APPPATH.'cache/compile';    //编译缓存文件夹路径
        $this->cache_dir      = APPPATH.'cache/html';     //缓存文件夹路径
     /*   $this->config_dir     = ROOTCMS.site_config_value('config_dir');;      //配置文件夹路径*/
        $this->left_delimiter   ='{';    //配置变量左侧识别符
        $this->right_delimiter  ='}';     //配置变量右侧识别符
        $this->caching        = 0;    //是否开启缓存
        $this->cache_lifetime =60;     //缓存时间
        $this->compile_check=1;
        $this->php_handling = 1;
    }
}
?>
